<?php
/**
 * 云打印平台，用户关联的agent
 * @author lss
 * 2017-08-14
 */
namespace soa\mp;

use soa\client;

class userAgent  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//用户添加agent
	public function insert($uid,$agentGuid,$platform = "weixin_shop_36"){
		return $this->post("api/userAgent/insert",compact('agentGuid','uid','platform'));
	}

	//根据agent查询用户
	public function getByAgent($agentGuid,$platform = "weixin_shop_36"){
		return $this->post("api/userAgent/getByAgent",compact('agentGuid','platform'));
	}

	//根据用户查询agent
	public function getByUser($uid,$platform = "weixin_shop_36"){
		return $this->post("api/userAgent/getByUser",compact('uid','platform'));
	}
}